package com.yili.oa.service.impl;

import com.yili.oa.dao.FtTradeTypeMapper;
import com.yili.oa.models.FtTradeType;
import com.yili.oa.models.FtTradeTypeExample;
import com.yili.oa.service.FtTradeTypeService;
import com.yili.oa.utils.annotate.DataBase;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@DataBase("lyt_game_db")
@Transactional(value = "transactionManager")
public class FtTradeTypeServiceImpl implements FtTradeTypeService {

    @Autowired
    FtTradeTypeMapper mapper;

    @Override
    public List<FtTradeType> get() {
        FtTradeTypeExample example = new FtTradeTypeExample();
        return mapper.selectByExample(example);
    }
}
